<?
	
	# FileName="Connection_php_mysql.htm"
	# Type="MYSQL"
	# HTTP="true"
	$hostname_conn = "localhost:3306";
	$database_conn = "pesquisacampo";
	$username_conn = "root";
	$password_conn = "";
	$conn = mysql_pconnect($hostname_conn, $username_conn, $password_conn) or trigger_error(mysql_error(),E_USER_ERROR); 
	
	
	header('Content-Type: text/html; charset=utf-8');
	
	mysql_query("SET NAMES 'utf8'");
	mysql_query('SET character_set_connection=utf8');
	mysql_query('SET character_set_client=utf8');
	mysql_query('SET character_set_results=utf8');
	
	ini_set('default_charset','UTF-8'); // Para o charset das páginas 
	mysql_set_charset('utf8'); 			// para a conexão com o MySQL

?>